package com.itheima02;


import java.io.FileOutputStream;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        String path="HomeWork13\\dir\\b.txt";
        //1,创建对象
        FileOutputStream fos=new FileOutputStream(path);
        //2，读写数据
//        fos.write(97);
        String word="hello";
        fos.write(word.getBytes());
        //3，释放资源
        fos.close();
    }
}
